import { getLevelZero, getLevelFirst, getUserID } from '@/utils';

/**
 * 预警管理
 * @param curRes
 * @returns
 */
const getManageTabSwitch = (curRes: Record<string, any>) => {
  // if (curRes?.['/warnController/ownCompanyID']) {
  //   return {
  //     ownCompanyID: getLevelZero(),
  //     params: 'ownCompanyID',
  //   };
  // } else if (curRes?.['/warnController/ownDepartmentID']) {
  //   return {
  //     ownDepartmentID: getLevelFirst(),
  //     params: 'ownDepartmentID',
  //   };
  // }
  if (curRes?.['/warnController/ownerID']) {
    return {
      ownerID: getUserID(),
      params: 'ownerID',
    };
  }
  return {};
};

export { getManageTabSwitch };
